//
//  UpgradeAppBounces.m
//  Logistics
//
//  Created by 刘峰 on 2017/10/14.
//  Copyright © 2017年 com.Logistics. All rights reserved.
//

#import "UpgradeAppBounces.h"

@implementation UpgradeAppBounces


+ (void)upgrade {
    UpgradeAppBounces *bounces = [UpgradeAppBounces loadFromNib];
    dispatch_async(dispatch_get_main_queue(), ^{
        bounces.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.2];
    });
    UIWindow *window = [UIApplication sharedApplication].keyWindow;
    bounces.frame = window.bounds;
    [window addSubview:bounces];
}


- (IBAction)goToUpdateApp:(id)sender {
    [NSObject openSystemURL:APPDOWNLOADADDRESS];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
